from selenium.webdriver.common.by import By


class Index_Locator:
    # 加课成功查看头像
    loc_login_success = (By.XPATH, '//img[@title="Simple_Small"]')
    # 创建/加入课程
    add_or_join_class = (By.XPATH, '//div[@class="ktcon1l fr"]')
    # 创建课程
    add_class = (By.XPATH, '//a[@id="addClass"]')
    # 加入课程
    join_class = (By.XPATH, '/html/body/div[3]/div[1]/div[1]')
    # 输入课程名
    input_class_name = (By.XPATH, '//input[@placeholder="请输入课程名称"]')
    # 输入课程码
    input_class_code = (By.XPATH, '//input[@placeholder="请输入课程加课验证码"]')
    # 点击创建按钮
    btu_creat_class = (By.XPATH, '//*[@id="new-class"]/div[7]/a[2]')
    # 点击确认加入
    btu_join_class = (By.XPATH, '/html/body/div[6]/div[3]/ul/li[2]/a')
    # 错误课程弹窗消息
    error_class_text = (By.XPATH, '//div[@id="error-tip"]')
